/* ----------------------------------------------------------------

	slider.scss

-----------------------------------------------------------------*/

/* Swiper Slider
-----------------------------------------------------------------*/

.slider-element {
  --#{$prefix}swiper-dots-position-bottom: 16px;
  --#{$prefix}novem-slider-dots-size: 16px;
  --#{$prefix}slider-pagination-gutters: 4px;
  --#{$prefix}slider-arrow-color: #{$gray-400};
  --#{$prefix}slider-pagination-rounded: 50%;
  position: relative;
  width: 100%;
  overflow: hidden;
  .full-screen & {
    height: auto;
  }
  .swiper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .swiper-slide {
    position: relative;
    margin: 0;
    height: 100%;
    // overflow: hidden;
    [data-caption-animate] {
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
  }
}

.swiper-slide-bg {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.slider-element .video-wrap,
.section .video-wrap,
.swiper-slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slider-element .container,
.slider-element .container-fluid {
  position: relative;
  height: 100%;
}

.slider-element.novem-slider .swiper-slide img {
  width: 100%;
}

.slider-element.novem-slider a {
  display: block;
  height: 100%;
}

.swiper-pagination {
  position: absolute;
  width: 100%;
  z-index: 20;
  margin: 0;
  top: auto;
  bottom: var(--#{$prefix}swiper-dots-position-bottom) !important;
  text-align: center;
  line-height: 1;
  span {
    display: inline-block;
    cursor: pointer;
    width: var(--#{$prefix}novem-slider-dots-size);
    height: var(--#{$prefix}novem-slider-dots-size);
    margin: 0 var(--#{$prefix}slider-pagination-gutters);
    opacity: 1;
    background-color: transparent;
    border: 1px solid var(--#{$prefix}slider-arrow-color);
    border-radius: var(--#{$prefix}slider-pagination-rounded);
    @include transition(all 0.3s ease);
    &:hover,
    &.swiper-pagination-bullet-active {
      background-color: var(--#{$prefix}slider-arrow-color) !important;
      width: calc(var(--#{$prefix}novem-slider-dots-size) * 2.5);
    }
  }
}

/* Video Overlay
-----------------------------------------------------------------*/

.video-wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
  video {
    position: relative;
    z-index: 1;
    opacity: 1;
    // width: 100%;
    object-fit: cover;
    @include transition(opacity 0.3s 1s ease);
    body:not(.has-plugin-html5video) & {
      opacity: 0;
    }
  }
}

.video-overlay,
.video-placeholder {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 5;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.video-placeholder {
  z-index: 4;
  background-repeat: no-repeat !important;
}

/* Slider Caption
-----------------------------------------------------------------*/
.slider-caption {
  --#{$prefix}slider-caption-font-color: $white;
  --#{$prefix}slider-caption-width: 550px;
  --#{$prefix}slider-caption-font-size: 1.375rem;
  --#{$prefix}slider-caption-font-weight: 300;
  --#{$prefix}slider-caption-transition: top 0.3s ease;
  --#{$prefix}slider-caption-p-size: 1.5rem;
  --#{$prefix}slider-caption-offset: 50px;
  --#{$prefix}slider-caption-bg-light: rgba(255, 255, 255, 0.8);
  --#{$prefix}slider-caption-bg-dark: rgba(0, 0, 0, 0.6);
  --#{$prefix}slider-caption-bg-radius: 2px;
  --#{$prefix}slider-caption-bg-padding: 5px 12px;
  position: relative;
  display: flex;
  height: 100%;
  flex-flow: column;
  justify-content: center;
  z-index: 20;
  max-width: var(--#{$prefix}slider-caption-width);
  color: var(--#{$prefix}slider-caption-font-color);
  font-size: var(--#{$prefix}slider-caption-font-size);
  font-weight: var(--#{$prefix}slider-caption-font-weight);
  transition: top 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .slider-caption {
    transition: none;
  }
}
